<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html xmlns:th="http://www.thymeleaf.org">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:mvc="http://www.springframework.org/schema/mvc">
<head>
    <meta charset="UTF-8">
    <title th:text="${sectionName}">发布问题</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/css/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="/css/community.css"/>
    <script src="/js/bootstrap.js" type="application/javascript"></script>
    <!--<script type="text/javascript" src="/js/bootstrap.js/bootstrap.min.js"></script>-->
    <!--<script src="js/bootstrap.js/bootstrap.min.js" type="application/javascript"></script>-->
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div th:insert="~{navigation::nav}"></div>
<div class="container-fluid main profile">
    <div class="row">
        <!--所有的尺寸 最大为12其中占据9个-->
        <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
            <h2 th:text="${sectionName}">测试</h2>
            <hr>
            <div class="row">
                <!--所有的尺寸 最大为12其中占据9个-->
                <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
                    <h2><span class="glyphicon glyphicon-list" aria-hidden="true"></span> 发现</h2>
                    <hr>
                    <span th:text="${pagination.questions}"></span>
                    <div class="media" th:each="question: ${pagination.questions}">
                        <div class="media-left">
                            <a href="#">
                                <!--加入圆角-->
                                <img class="media-object img-rounded" style="width: 30px ;height: 30px"
                                     th:src="*{question.user.avatarUrl}"
                                />
                            </a>
                        </div>
                        <div class="media-body">
                            <h4 class="media-heading" th:text="${question.title}"></h4>
                            点击进入😊
                            <br>
                            <span class="text-desc">
                            <span th:text="${question.commentCount}"></span>个回复..
                            <span th:text="${question.viewCount}">次浏览.</span>
                    </span>

                            发布时间<span th:text="${#dates.format(question.getGmtModified(),'dd MMMM yyyy')}">个小时前</span>
                        </div>
                    </div>

                    <nav aria-label="Page navigation">
                        <ul class="pagination">



                            <li th:if="${pagination.showFirstPage}">
                                <a th:href="@{'/profile/'+${section}(page=${1})}" aria-label="Previous">
                                    <span aria-hidden="true">&lt;;&lt;</span>
                                </a>
                            </li>
                            <li th:if="${pagination.showPrevious}">
                                <a th:href="@{'/profile/'+${section}(page=${pagination.getPage()-1})}"
                                   aria-label="Previous">
                                    <span aria-hidden="true">&lt</span>
                                </a>
                            </li>

                            <li th:each="page :${pagination.pages}" th:class="${pagination.page==page}? 'active':''">
                                <a th:href="@{'/profile/'+${section}(page=${page})}" th:text="${page}"></a></li>

                            <li th:if="${pagination.showNext}">
                                <a th:href="@{'/profile/'+${section}(page=${pagination.page+1})}" aria-label="Previous">
                                    <span aria-hidden="true">&gt;</span>
                                </a>
                            </li>
                            <li th:if="${pagination.showEndpage}">
                                <a th:href="@{'/profile/'+${section}(page=${pagination.totalPage})}" aria-label="Previous">
                                    <span aria-hidden="true">&gt;&gt;</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>
            <div class="row">
            </div>
        </div>
        <!--所有的尺寸 最大为12其中占据3个-->
        <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12" style="background-color: #d0e9c6">
            <h2>基础列表组</h2>
            <div class="list-group section">
                <a href="/profile/questions" style="margin-top: 15px"
                   th:class="${section == 'questions'}? 'active list-group-item ':'list-group-item '">我的问题</a>
                <a href="/profile/replies"
                   th:class="${section == 'replies'}? 'active list-group-item ':'list-group-item '">最新回复

                    <span class="badge">14</span></a>
                <a class="list-group-item">Third item</a>
            </div>
            <!--————————————————-->
            <!--版权声明：本文为CSDN博主「前端小99」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。-->
            <!--原文链接：https://blog.csdn.net/qq_41328247/article/details/79652870-->
        </div>
    </div>
</div>
</body>
</html>
42:40